﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteAdmin.Master" Inherits="System.Web.Mvc.ViewPage<Beeldbankmvc.ViewModels.PriceinfoViewModel>" %>
<%@ Import Namespace="Beeldbankmvc.Code" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">Prijsinformatie aanpassen</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderAction("AdminMenu", "Miscellaneous"); %>
    <h2>Prijsinformatie aanpassen</h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <fieldset style="border: 0px;">
        <legend style="display: none;">Velden</legend>
        <%: Html.HiddenFor(m => Model.Priceinfo.Id) %>
        <div class="editor-label">
            <%: Html.LabelFor(m => Model.Priceinfo.Type) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(m => Model.Priceinfo.Type) %>
            <%: Html.ValidationMessageFor(m => Model.Priceinfo.Type) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => Model.Priceinfo.Formaat) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(m => Model.Priceinfo.Formaat) %>
            <%: Html.ValidationMessageFor(m => Model.Priceinfo.Formaat) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => Model.Priceinfo.HoofdNummer)%>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(m => Model.Priceinfo.HoofdNummer, new { style = "width:16px;" })%>
            -
            <%: Html.TextBoxFor(m => Model.Priceinfo.SubNummer, new { style = "width:16px;" })%>
            <%: Html.ValidationMessageFor(m => Model.Priceinfo.HoofdNummer)%>
            <%: Html.ValidationMessageFor(m => Model.Priceinfo.SubNummer)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => Model.Priceinfo.Tonen) %>
        </div>
        <div class="editor-field">
            <%: Html.CheckBoxFor(m => Model.Priceinfo.Tonen)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => Model.Priceinfo.MediaTypeId) %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("Types")%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => Model.Priceinfo.Prijs) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(m => Model.Priceinfo.Prijs)%>
            <%: Html.ValidationMessageFor(m => Model.Priceinfo.Prijs) %>
        </div>
        <div>
            <input type="submit" value="Opslaan" />
            | <a href="<%= Url.Action("Index", "PriceInfo") %>">
                <img src="<%=AppHelper.getContent("~/Content/images/list.jpg") %>" alt="Terug naar het overzicht" />
                Terug naar het overzicht</a>
        </div>
    </fieldset>
    <% } %>
</asp:Content>
